<!DOCTYPE html>
<html>
<#assign contextPath = request.contextPath/>
	<head>
		<meta charset="UTF-8">
		<title>用户管理</title>
		<link href="${contextPath}/css/bootstrap.min.css" rel="stylesheet">
	</head>

	<body>
		<#include "/common/nav.html">
		<div class="container-fluid">
			<div class="row">
				<#include "/common/left.html">
				<div class="col-sm-9">
					<ol class="breadcrumb">
					  <li><a href="#">主页</a></li>
					  <li class="active">用户管理</li>
					</ol>
					<div class="table-responsive">
						<table class="table table-striped">
							<thead>
								<tr>
									<th>序号</th>
									<th>用户名称</th>
									<th>密码</th>
									<th>邮箱</th>
									<th>注册时间</th>
									<th>状态</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
							<#list p.list as us>
								<tr>
									<td>${p.startNum+us_index+1}</td>
									<td>${us.username!}</td>
									<td>${us.userpwd!}</td>
									<td>${us.email!}</td>
									<td>${us.createtime!}</td>
									<td><#if us.status == 1>正常</#if><#if us.status == 2>锁定</#if></td>
									<td><#if us.status == 1><a href="lockingusers.action?vu.vuid=${us.vuid}">锁定</a></#if><#if us.status == 2><a href="unlockusers.action?vu.vuid=${us.vuid}">解锁</a></#if></td>
								</tr>
							</#list>
							</tbody>
						</table>
						<nav aria-label="Page navigation"  style="text-align: center">
							<ul class="pagination" >
								<li <#if !p.hasPrev>class="disabled"</#if>><a  href="getAllusers.action?p.pageNum=${p.pageNum-1}" aria-label="Previous"> <span
										aria-hidden="true">上一页</span>
								</a></li>
								<#list 1..p.pageSum as i>    
								  <li <#if p.pageNum == i>class="active"</#if>><a href="getAllusers.action?p.pageNum=${i}">${i}</a></li>
								</#list>
								
								<li <#if !p.hasNext>class="disabled"</#if>><a href="getAllusers.action?p.pageNum=${p.pageNum+1}" aria-label="Next"> <span
										aria-hidden="true">下一页</span>
								</a></li>
							</ul>
						</nav>
					</div>
				</div>
			</div>
		</div>
	</body>

</html>